Conversation
Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add workflows for synchronizing Copilot artifacts
Add reusable workflows for cross-repo Copilot artifact synchronization
Mar 1, 2026
Contributor
|
@copilot great. Add documentation in the readme file for how this works. If needed, add mermaid drawings. At the top har a section of how to get started with your Cratis repository - make it very clear that this is for Cratis only. In fact, we should have validation in the jobs - if the origin is not from the Cratis org - we should ignore it |
Co-authored-by: einari <134365+einari@users.noreply.github.com>
Contributor
Author
Done in c2d711b. Cratis-org validation:
README — rewrote with:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Centralizes Copilot instruction sync logic in
Cratis/Workflowsso all repos delegate here rather than each maintaining their own copy.Important
These workflows are for use by the Cratis organization only. Runtime validation rejects calls from outside the org.
Reusable workflows
sync-copilot-instructions.yml(workflow_call) — clones asource_repository, copies.github/copilot-instructions.md,.github/instructions/, and.github/agents/, then opens a PR in the calling repo. Input validated against injection-safe regex and must belong to theCratisorganization.propagate-copilot-instructions.yml(workflow_call) — lists all Cratis repos and firessync-copilot-instructions.ymlin each (skipping the caller to prevent loops). Uses a job-levelif: github.repository_owner == 'Cratis'guard to silently skip runs from outside the org.Bootstrap
bootstrap-copilot-sync.yml(workflow_dispatch) — one-shot workflow that opens PRs in every non-archived Cratis repo adding two thin wrappers:Idempotent — skips repos where the PR branch already exists. Requires
PAT_DOCUMENTATIONsecret withreposcope.Documentation
README.mdincludes a getting-started section for Cratis repositories, a Mermaid sequence diagram for the end-to-end propagation flow, a Mermaid flowchart for the sync workflow internals, and a per-workflow reference table.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.